class AddViewCountsAndMediaUrlToPosts < ActiveRecord::Migration
  def self.up
    add_column :posts,:view_count,:integer,:null => false, :default => 0
    add_column :posts,:media_url,:string
  end

  def self.down
    remove_column :posts,:view_count
    remove_column :posts,:media_url
  end
end
